package com.learn.excel.core.consts;

public class Const {

    /************************ 测点相关 ************************/
    /**
     * 传感器id与编号的对应关系
     **/
    public static final String TGT_ID_CODE = "hk:tgt:id:code:";
    /**
     * 通讯编号与测点id的对应关系
     **/
    public static final String TGT_SC_ID = "hk:tgt:sc:id:";
    /**
     * 测点id与类型id的对应关系
     **/
    public static final String TID_TYPE = "hk:tgt:tid:type:";
    /**
     * 测点状态
     **/
    // 离线
    public static final Integer OFFLINE = -1;
    // 在线
    public static final Integer ONLINE = 0;
    // 一级告警
    public static final Integer LEVEL_ONE = 1;
    // 二级告警
    public static final Integer LEVEL_TWO = 2;
    // 三级告警
    public static final Integer LEVEL_THREE = 3;


    /************************ 项目状态相关 未知 0 , 正常 1，离线 2，告警 3 ************************/
    public static final int DATA_STATUS_UNKNOW = 0;
    public static final int DATA_STATUS_NORMAL = 1;
    public static final int DATA_STATUS_OFFLINE = 2;
    public static final int DATA_STATUS_ALARM_LEVEL3 = 3;
    public static final int DATA_STATUS_ALARM_LEVEL2 = 4;
    public static final int DATA_STATUS_ALARM_LEVEL1 = 5;

    /************************ 告警相关 ************************/
    // 告警未处理
    public static final Integer UNDISPOSED = 0;
    // 告警已处理
    public static final Integer PROCESSED = 1;


    /************************ 数据导出和报表统计相关 ************************/
    // 历史数据导出目录
    public static final String DIR_EXPORT = "data/export/";


    /************************ 字符串相关 ************************/
    // punctuation[ptn][标点]
    public static final String PTN_LF = "\n";
    public static final String PTN_EMPTY = "";
    public static final String PTN_SPACE = " ";
    public static final String PTN_COMMA = ",";
    public static final String PTN_COLON = ":";
    public static final String PTN_SLASH = "/";
    public static final String PTN_PERIOD = "\\.";
    public static final String PTN_ASTERISK = "*";
    public static final String PTN_BAR_MID = "-";
    public static final String PTN_BAR_BOTTOM = "_";
    // format[fmt][格式]
    private static final String FMT_DOUBLE = "%.nf";
    public static final String FMT_TRIM_MON = "yyyyMM";
    public static final String FMT_TRIM_DAY = "yyyyMMdd";
    public static final String FMT_TRIM_SEC = "yyyyMMddHHmmss";
    public static final String FMT_TRIM_MILLI = "yyyyMMddHHmmssSSS";
    public static final String FMT_STD_MON = "yyyy-MM";
    public static final String FMT_STD_DAY = "yyyy-MM-dd";
    public static final String FMT_STD_SEC = "yyyy-MM-dd HH:mm:ss";
    public static final String FMT_STD_MILLI = "yyyy-MM-dd HH:mm:ss.SSS";
    public static final String FMT_CN_MON = "yyyy年MM月";
    public static final String FMT_CN_DAY = "yyyy年MM月dd日";
    // string[str][字符或字符串]
    public static final String STR_T = "T";
    public static final String STR_N = "n";
    public static final String STR_ZERO = "0";
    public static final String UNIT_B = "B";
    public static final String UNIT_KB = "KB";
    public static final String UNIT_MB = "MB";
    public static final String UNIT_GB = "GB";
    public static final String STR_TO = " 至 ";
    public static final String STR_DAY = "天，";
    public static final String CHAR_DAY = "日";
    public static final String CHAR_MONTH = "月";
    public static final String CHAR_YEAR = "年";
    public static final String STR_ASC = "ASC";
    public static final String STR_DESC = "DESC";
    public static final String STR_PROJECT = "project";
    public static final String STR_REPORT_DATE = "reportDate";
    public static final String STR_TYPE = "type";
    public static final String STR_TEMPLATE = "template";
    public static final String STR_MAX = "max";
    public static final String STR_MIN = "min";
    public static final String STR_MODEL = "model";
    public static final String STR_SUBJECT = "subject";
    public static final String STR_RESULT = "result";
    public static final String STR_TARGET = "target";
    public static final String SUFFIX_CSV = ".csv";
    public static final String SUFFIX_ZIP = ".zip";
    public static final String SUFFIX_TZ = " GMT+08:00";
    public static final String INFLUX_TZ = " tz('Asia/Shanghai')";

    //实验任务相关的状态
    /**
     * 实验任务正在执行中
     */
    public static final Integer SYS_JOB_RUNNING = 0;

    /**
     * 实验任务已经结束
     */
    public static final Integer SYS_JOB_ENDING = 1;

    /**
     * 正在实验的任务中仿真计算任务状态 开始执行，未入库状态
     */
    public static final Integer SYS_JOB_SIMULATION_START = 0;

    /**
     * 正在实验的任务中仿真计算任务状态 等待执行，以入库
     */
    public static final Integer SYS_JOB_SIMULATION_WAITING = 1;

    /**
     * 正在实验的任务中仿真计算任务状态 正在执行，正在调用算法程序计算
     */
    public static final Integer SYS_JOB_SIMULATION_RUNNING = 2;

    /**
     * 正在实验的任务中仿真计算任务状态 执行成功，并返回结果
     */
    public static final Integer SYS_JOB_SIMULATION_SUCCESS = 3;

    /**
     * 正在实验的任务中仿真计算任务状态 执行失败，计算失败
     */
    public static final Integer SYS_JOB_SIMULATION_FAIL = 4;

    public static final String PREFIX_MEAN = "mean_";
    public static final String PREFIX_PRED = "pred_";
    /************************ 基础信息导入相关 ************************/
    public static final String BASE_PROJECT = "项目信息";
    public static final String BASE_TARGET = "测点信息";
    public static final String BASE_TARGET_SITE = "位置信息";
    public static final String BASE_TARGET_TYPE = "传感器类型";
    public static final String SETTINGS_DATA_QUOTA = "传感器指标";
}
